//
//  PathManager.h
//  HangzhouDaily
//
//  Created by zjun86 on 10-8-16.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

//modified by yangmin at DT. on 2012-8-1.
//qq :415792212
//email:yangmin@me.com

#import <Foundation/Foundation.h>


@interface PathManager : NSObject {
    
	NSString * applicationDocumentsRootPath;
    NSString * applicationTempPath;
    NSString *applicationCachePath;
    
	NSString * defaultDatabasePath;
    
    NSString *docPath;
	NSString * cachePath;
    NSString * tempPath;

}

+ (PathManager *) sharedPathManager;

+ (BOOL) buildPath:(NSString *)path;
+ (BOOL) buildPathForFile:(NSString *)filePath;
+ (BOOL) deleteBuildPath:(NSString *)path;
- (BOOL) buildPath:(NSString *)path;
- (BOOL) buildPathForFile:(NSString *)filePath;
- (BOOL) deleteBuildPath:(NSString *)path;

//root path
- (NSString *) applicationDocumentsRootPath;
- (NSString *) applicationTempPath;
- (NSString *) applicationCachePath;

//tartget path
- (NSString *) cachePath;
- (NSString *) docPath;
- (NSString *) tempPath;

//custom detail path
- (NSString *) attachmentDocumentPathByName:(NSString *)attachment;
- (NSString *) attachmentImagePathByName:(NSString *)attachment;

- (NSString *) attachmentCachePathByName:(NSString *)attachment;

- (NSString *) attachmentTempPathByName:(NSString *)attachment;

//database
- (NSString *) defaultDatabasePath;

@end
